package com.wangshb.upms.service;

import com.wangshb.upms.core.tree.TreeNode;
import com.wangshb.upms.entity.UpmsRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

public interface UpmsRoleService extends IService<UpmsRole> {

        Page<UpmsRole> findPage(int pageNo, int pageSize, UpmsRole condition);


        List<UpmsRole> findList(Page<UpmsRole> page, UpmsRole condition);


        Long addUpmsRole(UpmsRole upmsRole);


        void delUpmsRole(UpmsRole upmsRole);


        void updateUpmsRoleWithLock(UpmsRole upmsRole);


        UpmsRole findOne(UpmsRole upmsRole);


        List<TreeNode> findForRoleTree();
}
